package com.ruoyi.business.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 余额变动记录对象 sd_balance_change
 *
 * @author xx
 * @date 2020-03-30
 */
public class BalanceChange extends BaseEntity {
    /** 主键id */
    private Long id;

    @Excel(name = "用户id")
    private Long userId;

    @Excel(name = "变动差值")
    private Double diff;

    @Excel(name = "变动前余额")
    private Double befor;

    @Excel(name = "变动后余额")
    private Double after;

    @Excel(name = "变动原因")
    private String reason;

    @Excel(name = "变动时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    public Double getBefor() {
        return befor;
    }

    public void setBefor(Double befor) {
        this.befor = befor;
    }

    public Double getAfter() {
        return after;
    }

    public void setAfter(Double after) {
        this.after = after;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Double getDiff() {
        return diff;
    }

    public void setDiff(Double diff) {
        this.diff = diff;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
